#include "equipment.h"

// 构造
Amplifier::Amplifier()
    :_tuner(nullptr), _player(nullptr)
{
    _tuner = new Tuner;
    _player = new StreamingPlayer;
    _stereo = new Stereo;
}

void Amplifier::On()
{
    std::cout << "AmplStreamPlayerifier is on!" << std::endl;
}

void Amplifier::Off()
{
    std::cout << "Amplifier is off!" << std::endl;
}

void Amplifier::SetSreamingPlayer()
{
    _player->On();
}

void Amplifier::SetStereoSound()
{
    _stereo->On();
}

void Amplifier::SetTuner()
{
    _tuner->On();
}

void Amplifier::SetVolum()
{
    _stereo->Volum();
}

std::string Amplifier::ToString()
{
    
}

// 析构
Amplifier::~Amplifier()
{
    delete _tuner;
    delete _player;
    delete _stereo;
}

void Stereo::On()
{
    std::cout << "Stereo is on!" << std::endl;
}

void Stereo::Off()
{
    std::cout << "Stereo is off!" << std::endl;
}

void Stereo::Volum()
{
    std::cout << "Volum is broadcast!" <<  std::endl;
}

void StreamingPlayer::On()
{
    std::cout << "StreamingPlayer is on!" << std::endl;
}

void StreamingPlayer::Off()
{
    std::cout << "StreamingPlayer is off!" << std::endl;
}

void Tuner::On()
{
    std::cout << "Tuner is on!" << std::endl;
}

void Tuner::Off()
{
    std::cout << "Tuner is off!" << std::endl;
}

void Screan::Up()
{
    std::cout << "Screan is up!" << std::endl;
}

void Screan::Dowm()
{
    std::cout << "Screan is down!" << std::endl;
}

void PopcomPopper::On()
{
    std::cout << "PopcomPopper is on!" << std::endl; 
}

void PopcomPopper::Off()
{
    std::cout << "PopcomPopper is off!" << std::endl;
}

void TheatreLights::On()
{
    std::cout << "TheatreLights is on!" << std::endl;
}

void TheatreLights::Off()
{
    std::cout << "TheatreLights is off!" << std::endl;
}

void Projector::On()
{
    std::cout << "Projector is on!" << std::endl;
}

void Projector::Off()
{
    std::cout << "Projector is off!" << std::endl;
}